package com.wg.dome.entity.user;


import com.wg.common.annotation.DataMember;
import com.wg.db.annotation.EntityField;
import com.wg.db.annotation.EntityTable;
import com.wg.db.schema.AccessLevel;

import java.io.Serializable;
import java.util.Date;

/**
 * 玩家登陆日志
 */
@EntityTable(tableName = "use_log_login", accessLevel = AccessLevel.WriteOnly)
public class LoginLogEntity implements Serializable {

    @DataMember(code = 1)
    @EntityField(isKey = true)
    private long id;

    @DataMember(code = 2)
    @EntityField
    private String name;

    @DataMember(code = 3)
    @EntityField
    private long playerId;

    @DataMember(code = 4)
    @EntityField
    private Date loginDate;

    public LoginLogEntity() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getPlayerId() {
        return playerId;
    }

    public void setPlayerId(long playerId) {
        this.playerId = playerId;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
